import request from '@/utils/request'

// 查询订单列表
export function list(query) {
    return request({
        url: '/yzxmp/customerservice/queryorder',
        method: 'get',
        params: query
    })
}

// 分销商列表
export function querytrader() {
    return request({
        url: '/yzxmp/customerservice/querytrader',
        method: 'get'
    })
}

// 查询订单详情
export function queryorderdetail(query) {
    return request({
        url: '/yzxmp/customerservice/queryorderdetail',
        method: 'get',
        params: query
    })
}

// 查询取票密码
export function queryorderpwd(query) {
    return request({
        url: '/yzxmp/customerservice/queryorderpwd',
        method: 'get',
        params: query
    })
}

// 清除购票记录
export function cleanprehistory(query) {
    return request({
        url: '/yzxmp/customerservice/cleanprehistory',
        method: 'get',
        params: query
    })
}

// 申请退款
export function applyrefund(query) {
    return request({
        url: '/yzxmp/customerservice/applyrefund',
        method: 'post',
        data: query
    })
}

// 申请退服务费
export function applyrefundfee(query) {
    return request({
        url: '/yzxmp/customerservice/applyrefundfee',
        method: 'post',
        data: query
    })
}
// // 删除登录日志
// export function delLogininfor(infoId) {
//   return request({
//     url: '/system/logininfor/' + infoId,
//     method: 'delete'
//   })
// }

// // 清空登录日志
// export function cleanLogininfor() {
//   return request({
//     url: '/system/logininfor/clean',
//     method: 'delete'
//   })
// }
